home *** CD-ROM | disk | FTP | other *** search
/ Champak Vol K-12 / Vol K-12.iso / games / extrem_t.exe / scripts / DefineSprite_435 / frame_9 / DoAction.as
Text File  |  2012-08-27  |  1KB  |  59 lines

  1. function destructionObjet(numero, bool)
  2. {
  3.    set("objEnCours" add numero,false);
  4.    set("objDetruit" add numero,true);
  5.    if(!bool)
  6.    {
  7.       eval("objEnnemi" add numero)._visible = false;
  8.    }
  9.    else
  10.    {
  11.       eval("objEnnemi" add numero).armeNiv1.armeNiv2.gotoAndStop(3);
  12.    }
  13. }
  14. incHinit = 8;
  15. decHinit = 2;
  16. incVinit = 2;
  17. decVinit = 1;
  18. delayMax = 10;
  19. difficulte = 16;
  20. decorXmin = 112.5;
  21. decorXmax = 437.5;
  22. decorYmin = 180;
  23. decorYmax = 220;
  24. percent = 100;
  25. repositionnement = true;
  26. tirGo = false;
  27. TirNumero = 0;
  28. tirEnCours = false;
  29. tirPossible = true;
  30. lancementObjet = false;
  31. frameTir = 14;
  32. NBmunition = 8;
  33. frameProjo = random(8) + 1;
  34. tir.projectile.gotoAndStop(frameProjo);
  35. icone.gotoAndStop(frameProjo);
  36. catapulte.gotoAndStop(100);
  37. icone.NBmunMC.gotoAndStop(9);
  38. cata.arbalete.arbaleteniv2.gotoAndStop(1);
  39. i = 1;
  40. while(50 >= i)
  41. {
  42.    set("PasObjEnnemi" add i,0);
  43.    set("XfinObjEnnemi" add i,275);
  44.    set("incYobjEnnemi" add i,-5);
  45.    set("decYobjEnnemi" add i,0.1);
  46.    i++;
  47. }
  48. NBpasEnnemi = 150;
  49. tamponXdecor = decor._x;
  50. _quality = "low";
  51. if(_parent.percentScaling < 75)
  52. {
  53.    NBobjetMAX = 9;
  54. }
  55. else
  56. {
  57.    NBobjetMAX = 12;
  58. }
  59.